/**
 * Created by wuli等等 on 2017/2/26.
 */
import React, { Component } from 'react';
import {   View,
            Text,
            StyleSheet,
} from 'react-native';

import HeaderAndBack from '../component/HeaderAndBack';


export default class Orders extends Component {
    static defaultProps = {
        title: 'Orders'
    };

    render() {
        const { navigator } = this.props;
        return (
            <View style={styles.container}>
                <HeaderAndBack text="全部订单" navigator = { navigator }/>
                <Text>Hi! My name is {this.props.title}.</Text>
            </View>

        )
    }
}

const styles=StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor:'#EDEDED'
    },
});